package com.oak.broke.exception;

/**
 * @author tanghan
 * @Description 会员自定义异常
 * @date 2023/04/12/ 17:14:00
 */
public class VipException extends RuntimeException {

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 异常信息
     */
    private String[] msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String[] getMsg() {
        return msg;
    }

    public void setMsg(String[] msg) {
        this.msg = msg;
    }

    /**
     * 构造函数
     *
     * @param code 状态码
     * @param msg  提示信息
     */
    public VipException(Integer code, String... msg) {
        this.code = code;
        this.msg = msg;
    }
}
